<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:c="http://java.sun.com/jstl/core"
	  xmlns:tr="http://myfaces.apache.org/trinidad"
	  lang="pt-br">
   <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><ui:insert name="titulo"></ui:insert></title>
        <link href="css/default.css" rel="stylesheet" type="text/css" />
    </h:head>
    
    <body>
        <form id="form1" jsfc="h:form">
           <div id="menu">
               <h4>Menu Principal</h4>
               <ul>
                <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="#{categoriaController.novaCat}" immediate="true"> 
                        Cadastrar Categoria 
                    </a>
                </li>
                <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="mostrarCategorias" immediate="true"> 
                        Exibir Categorias
                    </a>
                </li>
                <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="#{produtoController.novoProd}" immediate="true"> 
                        Cadastrar Produto 
                    </a>
                </li>   
                 <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="mostrarProdutos" immediate="true"> 
                        Exibir Produtos 
                    </a>
                </li> 
                <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="mostrarCompras" immediate="true"> 
                        Exibir Compras
                    </a>
                </li> 
                <li>
                   <a href="#" jsfc="h:commandLink" 
                        action="#{adminController.logout}" immediate="true"> 
                        Sair do Sistema
                    </a>
                </li>                           
               </ul>
           </div>        
           <div id="conteudo">
              <ui:insert name="conteudo"></ui:insert>
           </div>
        </form>
    </body>      
</html>